<?php

namespace App\Service\Message;

use App\Model\UserProfile;
use App\Service\BaseService;

/**
 * 自动聊天消息设置删除
 */
class AutoMsgDelService extends BaseService
{
    public function handle()
    {
        $userId = $this->getUserId();
        $msgType = $this->request->input('type', 'text');
        $ret['result'] = UserProfile::delAutoMsg($userId, $msgType);
        return $ret;
    }
}
